package cn.wenhaha.factory.abstr;

import cn.wenhaha.factory.Milk;
import cn.wenhaha.factory.Yogurt;

/**
 * @ClassName: AbstractFactoryTest
 * @description: TODO 抽象工厂模式测试类
 * @author: wyndem
 * @date: 2019/5/12 13:56
 * @Version: 1.0
 **/
public class AbstractFactoryTest {
    public static void main(String[] args) {
        AbstractMilkFactory factory = new TelunsuFactory();
        Milk milk = factory.getMilk();
        System.out.println(milk.getName());
        Yogurt yogurt = factory.getYogurt();
        System.out.println(yogurt.description());

    }
}
